$(function(){
    $('#city').autocomplete('data.php?mode=sql', {
        width: 200,
        max: 5
    });

    $('#state').autocomplete('datatwo.php?mode=sql', {
        width: 200,
        max: 5
    });

});